package com.woody.aggregate.infrastructure.msgsendrule.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.woody.common.mybatisplus.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 消息弹窗规则
 * </p>
 *
 * @author author
 * @since 2025-03-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("msg_send_rule")
public class MsgSendRule extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 规则标题
     */
    private String title;

    /**
     * 分类表主键id
     */
    private Integer categoryId;

    /**
     * 推送时间类型 1：立即推送；2：定时推送
     */
    private Integer startType;

    /**
     * 消息开始推送时间
     */
    private Date startTime;

    /**
     * 推送频率 1: 每日一次; 2:仅一次
     */
    private Integer frequency;

    /**
     * 目标受众 1:全部用户; 2: 指定用户
     */
    private Integer userScope;

    /**
     * 用户类型 1: 店铺
     */
    private Integer userType;



}
